/*
 * Created by Jaren at 2021/9/26 15:28
 */
class BleUuid {

    static const String DEVICE_INFO_SERVICE_UUID = "0000180a-0000-1000-8000-00805f9b34fb";
    static const String DEVICE_INFO_CHARACTERISTIC_UUID = "00002a23-0000-1000-8000-00805f9b34fb";

    String writeServiceUuid;

    String writeCharacteristicUuid;

    String notifyServiceUuid;

    String notifyCharacteristicUuid;

    BleUuid(this.writeServiceUuid, this.writeCharacteristicUuid, this.notifyServiceUuid, this.notifyCharacteristicUuid);

    @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is BleUuid &&
          runtimeType == other.runtimeType &&
          writeServiceUuid == other.writeServiceUuid &&
          writeCharacteristicUuid == other.writeCharacteristicUuid &&
          notifyServiceUuid == other.notifyServiceUuid &&
          notifyCharacteristicUuid == other.notifyCharacteristicUuid;

  @override
  int get hashCode => writeServiceUuid.hashCode ^ writeCharacteristicUuid.hashCode ^ notifyServiceUuid.hashCode ^ notifyCharacteristicUuid.hashCode;
}